<form action="{:U('add')}" method="post" class="layui-form layui-box"
      data-option="{callback:function(data, obj){window.ICY8.closeThisDialog(obj)}}" ajaxSubmit>
    <icy8:formItem label="$info['title']" help="$info.remark">
        <switch name="info.type">
            <case value="0" break="true">
                <input type="number" name="value" class="layui-input" value="{$info.value}"/>
            </case>

            <case value="1" break="true">
                <input type="text" name="value" class="layui-input" value="{$info.value}"/>
            </case>

            <case value="2" break="true">
                <textarea class="layui-textarea" name="value">{$info.value}</textarea>
            </case>

            <case value="3" break="true">
                <textarea class="layui-textarea" name="value">{$info.value}</textarea>
            </case>

            <case value="4" break="true">
                <Html:select options="info['extra_arr']" name="value" selected="info['value']"/>
            </case>
        </switch>
    </icy8:formItem>
    <icy8:formItem label="">
        <if condition="$info">
            <input type="hidden" name="id" value="{$info.id}"/>
        </if>
        <icy8:button title="保存"/>
        <icy8:button title="取消" click="ICY8.closeThisDialog(this)" btnType="primary" type="button"/>
    </icy8:formItem>
</form>